import request from '@/utils/request'

// 查询养护填报记录列表
export function listPubConserveRecords(query) {
  return request({
    url: '/pub/pubConserveRecords/list',
    method: 'get',
    params: query
  })
}

// 查询养护填报记录详细
export function getPubConserveRecords(id) {
  return request({
    url: '/pub/pubConserveRecords/' + id,
    method: 'get'
  })
}

// 新增养护填报记录
export function addPubConserveRecords(data) {
  return request({
    url: '/pub/pubConserveRecords',
    method: 'post',
    data: data
  })
}

// 修改养护填报记录
export function updatePubConserveRecords(data) {
  return request({
    url: '/pub/pubConserveRecords',
    method: 'put',
    data: data
  })
}

// 删除养护填报记录
export function delPubConserveRecords(id) {
  return request({
    url: '/pub/pubConserveRecords/' + id,
    method: 'delete'
  })
}
